package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <desc>
 *      设备地址变更影响用户权限信息PO
 * </desc>
 *
 * @createDate 2018/2/7
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ItlTables("time_task_auth_device_address_info")
public class TimeTaskAuthDeviceAddressInfoPO extends BasePO implements Serializable {

    //设备所在的小区ID
    @ItlField("project_id")
    private String projectId;

    //授权人userId
    @ItlField("auth_user_id")
    private String authUserId;

    //设备地址变更后转化成的unitId,多个以英文,分隔
    @ItlField("unit_id")
    private String unitId;

    //设备序列号id,以逗号间隔
    @ItlField("device_uniques")
    private String deviceUniques;


    public TimeTaskAuthDeviceAddressInfoPO(String projectId, String authUserId, String unitId, Integer status, Date createTime,Date updateTime) {
        this.projectId = projectId;
        this.authUserId = authUserId;
        this.unitId = unitId;
        super.setStatus(status);
        super.setCreateTime(createTime);
        super.setUpdateTime(updateTime);
    }
}